/**
 * Input prompt example
 */

//'use strict';
var fs = require('fs'),
    a,b,c,d;


//自动安装任务
function operate() {
    fs.readFile('./lib/webpack.base.conf.js', function (err, data) {
        if (err) throw err;
        var data ={
            output: {
                path: a,
                publicPath: process.env.NODE_ENV === 'production' ? b : c,
                filename: 'd.js'
            }
        };

        fs.appendFile('./lib/webpack.base.conf.js', data, function (err) {
            if (err) throw err;
            console.log("done!")
        });
    });
}
operate();





